package com.fowo.api.flow.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @fileName: FormGroups
 * @Description: 代码目的，作用，如何工作
 * @Author: pzh
 * @Date: 2023/3/27 0027 10:42
 */


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "form_groups")
public class FormGroups implements Serializable {

    

    /**
    * id
    */
    @TableId(type = IdType.AUTO)
    @TableField(value = "`group_id`")
    @Schema(title = "id")
    private Long groupId;
    /**
    * 组名
    */
    @TableField(value = "`group_name`")
    @Schema(title = "组名")
    private String groupName;
    /**
    * 排序号
    */
    @TableField(value = "`sort_num`")
    @Schema(title = "排序号")
    private Integer sortNum;

    /**
     * 创建时间
     */
    @TableField(value = "`create_time`")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(title = "创建时间")
    private java.util.Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "`create_user`")
    @Schema(title = "创建人")
    private Long createUser;

    /**
     * 更新时间
     */
    @TableField(value = "`last_update_time`",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(title = "更新时间")
    private java.util.Date lastUpdateTime;

    /**
     * 更新人
     */
    @TableField(value = "`last_update_user`")
    @Schema(title = "更新人")
    private Long lastUpdateUser;

    /**
     * 删除标记
     */
    @TableField(value = "`del_flag`")
    @TableLogic
    @Schema(title = "删除标记")
    private Boolean delFlag;

}
